package org.springframework.samples.mvc.basic.edinicamerka;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.samples.mvc.basic.tipGotovProizvod.ViewDTO;

import com.proba.annotations.pojo.EdinicaMerka;

public class EdinicaMerkaView implements ViewDTO<EdinicaMerka> {

	private Long id;
	
	@NotNull
	@Size(min=1)
	private String edinicaMerka;
	
	@NotNull
	@Size(min=1)
	private String edinicaMerkaLabel;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEdinicaMerka() {
		return edinicaMerka;
	}

	public void setEdinicaMerka(String edinicaMerka) {
		this.edinicaMerka = edinicaMerka;
	}

	public String getEdinicaMerkaLabel() {
		return edinicaMerkaLabel;
	}

	public void setEdinicaMerkaLabel(String edinicaMerkaLabel) {
		this.edinicaMerkaLabel = edinicaMerkaLabel;
	}

	@Override
	public String toString() {
		return "EdinicaMerkaView [id=" + id + ", edinicaMerka=" + edinicaMerka
				+ ", edinicaMerkaLabel=" + edinicaMerkaLabel + "]";
	}
	
}
